//
//  YXYSelectionModel.m
//  Topit
//
//  Created by dllo on 15/12/5.
//  Copyright © 2015年 YXY. All rights reserved.
//

#import "YXYSelectionModel.h"

@implementation YXYSelectionModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"btn"]) {
        NSArray *array = value;
        NSMutableArray *dataSource = [NSMutableArray arrayWithCapacity:0];
        for (NSDictionary *dic in array) {
            YXYSelectionLowerModel *selectionLowerModel = [[YXYSelectionLowerModel alloc] initWithDictionary:dic];
            [dataSource addObject:selectionLowerModel];
            [selectionLowerModel release];
        }
        self.btnArray = [NSArray arrayWithArray:dataSource];
    }
}

- (id)valueForKeyPath:(NSString *)keyPath {
    return nil;
}
@end
